#ifndef _AIP1632C_H_
#define _AIP1632C_H_
#include "Main.h"

#define AiP1632C_DATA PORT_B_6
#define AiP1632C_WR PORT_B_5
#define AiP1632C_RD PORT_B_4
#define AiP1632C_CS PORT_B_3

void delay(void);					//几us的延时
void Wait_ms(int num);

void AiP1632C_write_cmd(unsigned char cmd);//写命令
void AiP1632C_write_dat(unsigned char dat,unsigned char addr);//写数据
void AiP1632C_write(unsigned char addr,unsigned char send_times);//写数据
void AiP1632C_init(void);//初始化
void AiP1632C_write_byteH(unsigned char byte,unsigned char length);//高位先传
void AiP1632C_write_byteL(uint16_t byte,unsigned char length);//低位先传
void AiP1632C_display(void);//显示

#endif
